﻿using System.Xml.Serialization;

namespace ConsoleTool.Models.Xml
{
    [XmlRootAttribute("Project", IsNullable = false)]
    public class ClassLibNameCsproj
    {
        [XmlAttribute()]
        public string Sdk{get;set;}

        [XmlElement(ElementName = "PropertyGroup", IsNullable = false)]
        public ProjectPropertyGroup PropertyGroup { get; set; }

        

        [XmlArrayAttribute(ElementName = "ItemGroup", IsNullable = false)]
        public PackageReference[] ItemGroup { get; set; }

    }

    public partial class ProjectPropertyGroup
    {
        [XmlElement(ElementName = "Description", IsNullable = true)]
        public string Description { get; set; }
        [XmlElement(ElementName = "TargetFramework", IsNullable = true)]
        public string TargetFramework { get; set; }
        [XmlElement(ElementName = "NoWarn", IsNullable = true)]
        public string NoWarn { get; set; }
        [XmlElement(ElementName = "GenerateDocumentationFile", IsNullable = true)]
        public bool? GenerateDocumentationFile { get; set; }
        [XmlElement(ElementName = "PackageTags", IsNullable = true)]
        public string PackageTags { get; set; }
    }

    public partial class PackageReference
    {

        /// <remarks/>
        [XmlAttribute()]
        public string Include { get; set; }

        /// <remarks/>
        [XmlAttribute()]
        public string Version { get; set; }

        /// <remarks/>
        [XmlAttribute]
        public string PrivateAssets { get; set; }
    }


}
